import { request } from '#/api/request';

export async function getRegionTree(pid: number = 0) {
  return request.Get(`/regions/${pid}/tree`, {
    cacheFor: {
      mode: 'restore',
      expire: 30 * 60 * 1000,
    },
  });
}

export async function getRegions(pid: number = 0) {
  return request.Get(`/regions/${pid}`);
}
